#ifndef BITMAPFACTORY_H_H_H_H_
#define BITMAPFACTORY_H_H_H_H_
#include "Factory.h"

#include <QPixmap>
class BitmapFactoryInstP;
class BitmapFactoryInst
{

public:
	static BitmapFactoryInst& instance(void);
	static void destruct();

	void addPath(const QString& path);
	QPixmap pixmap(const char* name) const;
	void addXPM(const char* name,const char** pXPM);

	bool loadPixmap(const QString& filename,QPixmap& icon)const;

	QPixmap pixmapFromSvg(const QByteArray& contents,const QSize& size)const;

private:

	BitmapFactoryInst(void);
	~BitmapFactoryInst(void);

	static BitmapFactoryInst* _pcSingleton;
	BitmapFactoryInstP* d;


};

inline BitmapFactoryInst& BitmapFactory(void)
{
	return BitmapFactoryInst::instance();
}
#endif